home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-02-18 | 1.0 KB | 57 lines | [TEXT/McSk] |
- (Parameter Show/Set Utility for White Knight)
- (By Greg Hartwig, GEnie: GREG.HARTWIG, CompuServe: 70525,722, 10/89)
- QUIET
-
- (Dialogs:
- ( 1000 -- Ask for parameter to show/change
- ( 1001 -- Show value as a string (currently not used)
- ( 1002 -- Show value as a number
-
-
- (Set up dialog defaults)
-
- (Default Parameter)
- ERASE A$
-
- (-----------------------------------------------)
-
-
- (Run the dialog)
- SCREEN OFF
- :GETPNUM
- (Ask for the parameter to show/change)
- SHELL A9%,1000
- (Button clicked on is in A9%)
-
- (If the Cancel button was clicked (item #2), exit)
- TEST A9% = 2
- IF YES SCREEN ON
- IF YES END
-
-
- ("OK" button was clicked)
- (Get value of the parameter requested)
- STRINGTONUM A$,P%
- GETPARAM P%,V%
-
-
- (Set up to show the next window)
- NUMTOSTRING V%,B$
-
-
- :SHOWNUM
- (Show the parameter as a number)
- SHELL A9%,1002
- (Button clicked on is in A9%)
-
- (If the Cancel button was clicked (item #2), go back to 1st window)
- TEST A9% = 2
- IF YES JUMPTO GETPNUM
-
-
- (Store new value back)
- STRINGTONUM B$,V2%
- PUTPARAM P%,V2%
-
- (Do it all again)
- JUMPTO GETPNUM